package com.itheima.作业.车;

public class catTest {
    public static void main(String[] args) {
        car car = new car();
        car.setCarType("普通车辆");
        car.setCarNumber("京A12345");
        car.start();
        car.stop();
        // 创建出租车对象
        taxi taxi = new taxi();
        taxi.setCarType("出租车");
        taxi.setCarNumber("沪B67890");
        taxi.setCarCompany("滴滴出行");
        taxi.start();
        taxi.stop();

        // 创建家用轿车对象
        Familycar privateCar = new Familycar();
        privateCar.setCarType("家用轿车");
        privateCar.setCarNumber("粤C54321");
        privateCar.setOwnerName("张三");
        privateCar.start();
        privateCar.stop();
    }

}
